import request from '@/utils/request'

/**
 * 获取博文信息
 */
export function getArticle (id) {
  return request({
    url: `/article/get/${id}`,
    method: 'POST'
  })
}

/**
 * 类别个数
 */
export function classCount () {
  return request({
    url: 'category/class-count',
    method: 'POST'
  })
}

/**
 * 类别集合
 */
export function categoryList () {
  return request({
    url: 'category/list',
    method: 'POST'
  })
}
